.class Lcom/waiqin365/lightapp/visit/hl;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/VisitRecordActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/VisitRecordActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/hl;->a:Lcom/waiqin365/lightapp/visit/VisitRecordActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hl;->a:Lcom/waiqin365/lightapp/visit/VisitRecordActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/VisitRecordActivity;->b(Lcom/waiqin365/lightapp/visit/VisitRecordActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->getHeaderViewsCount()I

    move-result v0

    sub-int v0, p3, v0

    if-gez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/hl;->a:Lcom/waiqin365/lightapp/visit/VisitRecordActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/visit/VisitRecordActivity;->c(Lcom/waiqin365/lightapp/visit/VisitRecordActivity;)Lcom/waiqin365/lightapp/visit/b/bw;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/visit/b/bw;->a(I)Lcom/waiqin365/lightapp/visit/b/bn;

    move-result-object v0

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/visit/hl;->a:Lcom/waiqin365/lightapp/visit/VisitRecordActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/visit/VisitRecordActivity;->d(Lcom/waiqin365/lightapp/visit/VisitRecordActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/visit/VisitRecordDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "planInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hl;->a:Lcom/waiqin365/lightapp/visit/VisitRecordActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/visit/VisitRecordActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/hl;->a:Lcom/waiqin365/lightapp/visit/VisitRecordActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/visit/VisitRecordActivity;->overridePendingTransition(II)V

    goto :goto_0
.end method
